/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-05-06     liuchao       the first version
 */
#include "drv_ec.h"
void ec_enable() {
    rt_pin_write(EC_EN, PIN_LOW);
}
void ec_disable() {
    rt_pin_write(EC_EN, PIN_HIGH);
}

static int ec_init() {
    rt_pin_mode(EC_EN, PIN_MODE_OUTPUT);
    rt_pin_write(EC_EN, PIN_LOW);
    return RT_EOK;
}
INIT_DEVICE_EXPORT(ec_init);
